#include <ulib.h>
#include <stdio.h>
#include <dir.h>

#define printf(...)		fprintf(1,__VA_ARGS__)

void
usage(void) {
	printf("Usage: rmdir dirs...\n");
}

int
main(int argc, char **argv) {
	if (argc == 1) {
		usage();
		return -1;
	}
	else {
		int i;
		for (i = 1; i < argc; ++i) {
			if (unlink(argv[i]) < 0) {
				printf("rmdir: %s failed to delete\n", argv[i]);
			}
		}
	}
	return 0;
}
